package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"movie/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.UserController{}, "post:Login")
	beego.Router("/list", &controllers.MovieController{}, "get:List")
	beego.Router("/info", &controllers.MovieController{}, "get:Info")
	beego.Router("/del", &controllers.MovieController{}, "get:Del")
	beego.Router("/add", &controllers.MovieController{}, "post:Add")
	beego.Router("/update", &controllers.MovieController{}, "post:Update")
	beego.Router("/upload", &controllers.MovieController{}, "post:Upload")
}
